<template>
  <div class="wrapper">
    <div class="content">
      <!-- fontz -->
      <text class="font28 text2 fontz">{{item.context}}</text>
    </div>
    <div class="line1 height1 mt30"></div>
  </div>
</template>


<style src="@/_css/style.css" ></style>
<style scoped>
  .wrapper {
    display: flex;
    width: 750px;
    flex-direction: column;
    margin-top: 30px;
    padding: 0 30px;
  }
  .content {
    flex: 1;
    flex-direction: column;
    justify-content: center;
  }
  .left-desc {
    lines: 1;
    width: 600px;
    text-overflow: ellipsis;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .but-close {
    z-index: 9;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: 15px;
    right: 15px;
    width: 62px;
    height: 62px;
  }
  .img-genduo {
    width: 32px;
    height: 32px;
  }
</style>

<script>
  import jtime from "@/_js/time";
  import jconfig from "@/_js/config";
  import jdebug from "@/_js/debug";
  import jmath from "@/_js/math";
  import I18N from "@/_i18n/i18n";
  var T = I18N.t;
  export default {
    props: {
      item: {
        type: Object,
        default: undefined,
      },
    },

    data() {
      return {
        Config: jconfig,
        T: T,
        isShow: false,
        title: "",
        priceTime: "",
      };
    },

    created() {

    },

    computed: {},

    methods: {
      //功能
      funcClick(event) {
        this.$emit("func", event);
      },
      conditionTransform(value) {
        let minutes = Number(value);
        if (minutes < 60) {
          return `${minutes}${T("分钟")}`;
        } else {
          const hours = Math.floor(minutes / 60); // 计算小时
          const remainingMinutes = minutes % 60; // 计算剩余分钟
          if (remainingMinutes === 0) {
            return `${hours}${T("小时")}`; // 如果没有剩余分钟，只显示小时
          } else {
            return `${hours}${T("小时")}${remainingMinutes}${T("分钟")}`; // 显示小时和分钟
          }
        }
      },
    },

  };
</script>